﻿namespace SampleApplication.CoffeeShopSample.Implementation.Application.CommandsParsers
{
    #region Usings

    using Dependencies.Application;
    using System.Diagnostics.CodeAnalysis;

    #endregion Usings

    public class ExitCommand : ICommand
    {
        private readonly IApplication application;

        public ExitCommand(IApplication application)
        {
            this.application = application;
        }

        [ExcludeFromCodeCoverage]
        public void Execute()
        {
            application.Exit();
        }
    }
}